import { handleActions as createReducer } from 'redux-actions'
import { saveProducts } from '../actions/product.action'
const initialState = {
  list: []
}

export default createReducer({
  [saveProducts]: (state, action) => ({
    list: action.payload
  })
}, initialState)
